package com.letfox.log.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.log.dao.AuthLogMapper;
import com.letfox.log.model.LOGAuth;
import com.letfox.log.service.AuthLogService;

@Service
public class AuthLogServiceImpl implements AuthLogService {

	@Autowired
	private AuthLogMapper authLogMapper;
	
	@Override
	public int insert(LOGAuth authLog) {
		return authLogMapper.insert(authLog);
	}

	@Override
	public int update(LOGAuth authLog) {
		return authLogMapper.update(authLog);
	}

	@Override
	public int deleteById(Long id) {
		return authLogMapper.deleteById(id);
	}
	
	@Override
	public int deleteByIds(String ids) {
		return authLogMapper.deleteByIds(ids);
	}

	@Override
	public LOGAuth findById(Long id) {
		return authLogMapper.selectById(id);
	}

	@Override
	public List<LOGAuth> findList(LOGAuth authLog) {
		return authLogMapper.selectList(authLog);
	}

}
